About 1333 letters

About 7 minutes

#min

Description: Get the minimum value. See also the max function.

def min(iterable, *, key=None): ''' Get the minimum value :param iterable: An iterable object :param key: A callback function returning the value to compare :return: The minimum value in the iterable ''' def min(iterable, *, default, key=None): ''' Get the minimum value :param iterable: An iterable object :param default: Default value returned if the iterable is empty :param key: A callback function returning the value to compare :return: The minimum value in the iterable ''' def min(arg1, arg2, *args, key=None): ''' Get the minimum value :param arg1: A value :param arg2: A value :param args: Any number of values :param key: A callback function returning the value to compare :return: The minimum value '''

Example:

print(min(2, 8, 4, 3, 9, 1, 6, 5, 7)) print(min([2, 8, 4, 3, 9, 1, 6, 5, 7])) print(min([], default=-1)) print(min([('Tom', 8), ('Jerry', 9), ('Spike', 5), ('Tuffy', 3)], key=lambda x:x[1]))

>>> Establishing WebAssembly Runtime.

>>> Standby.

Powered by Shift.

Created in 6/9/2025

Updated in 6/9/2025